<?php

class bannerPlugin extends commonMod
{

    public function __construct()
    {
        parent::__construct();
        $config['TPL_TEMPLATE_PATH'] = dirname(__file__) . '/template/';
        $this->tpl = new cpTemplate($config);
    }


    //配置读取
    public function plus_configout()
    {       
        return unserialize($this->plus_setting(dirname(__file__),'config'));

    }

//---------------------------------------全局信息结束----------------------------------------------------//
    //首页
    public function index()
    {
        $loop = $this->model->table('extend_banner')->order('id desc')->select();
        $this->assign('TPL',__ROOT__.'/plugins/banner/template/');
        $this->assign('info',$this->plus_configout());
        $this->assign('loop', $loop);
        $this->display('banner');
    }
 


}

?>